{
  "properties" : { },
  "id" : "copy1735030795414d69980",
  "script" : null,
  "groupId" : "dda1d060ae494fccab1eacf5a00874c1",
  "name" : "2.预约会议列表",
  "createTime" : null,
  "updateTime" : 1735031201939,
  "lock" : null,
  "createBy" : null,
  "updateBy" : null,
  "path" : "/conferences/conditions",
  "method" : "POST",
  "parameters" : [ {
    "name" : "page",
    "value" : "1",
    "description" : null,
    "required" : false,
    "dataType" : "String",
    "type" : null,
    "defaultValue" : null,
    "validateType" : null,
    "error" : null,
    "expression" : null,
    "children" : null
  }, {
    "name" : "size",
    "value" : "1000",
    "description" : null,
    "required" : false,
    "dataType" : "String",
    "type" : null,
    "defaultValue" : null,
    "validateType" : null,
    "error" : null,
    "expression" : null,
    "children" : null
  } ],
  "options" : [ ],
  "requestBody" : "",
  "headers" : [ ],
  "paths" : [ ],
  "responseBody" : "{\n    \"uuid\": \"token123456\",\n    \"userType\": 38,\n    \"expire\": 1000,\n    \"passwordExpireAfter\": \"90\"\n}",
  "description" : null,
  "requestBodyDefinition" : null,
  "responseBodyDefinition" : {
    "name" : "",
    "value" : "",
    "description" : "",
    "required" : false,
    "dataType" : "Object",
    "type" : null,
    "defaultValue" : null,
    "validateType" : "",
    "error" : "",
    "expression" : "",
    "children" : [ {
      "name" : "timestamp",
      "value" : "2024-12-24T08:47:49.483+00:00",
      "description" : "",
      "required" : false,
      "dataType" : "String",
      "type" : null,
      "defaultValue" : null,
      "validateType" : "",
      "error" : "",
      "expression" : "",
      "children" : [ ]
    }, {
      "name" : "status",
      "value" : "404",
      "description" : "",
      "required" : false,
      "dataType" : "Integer",
      "type" : null,
      "defaultValue" : null,
      "validateType" : "",
      "error" : "",
      "expression" : "",
      "children" : [ ]
    }, {
      "name" : "error",
      "value" : "Not Found",
      "description" : "",
      "required" : false,
      "dataType" : "String",
      "type" : null,
      "defaultValue" : null,
      "validateType" : "",
      "error" : "",
      "expression" : "",
      "children" : [ ]
    }, {
      "name" : "message",
      "value" : "",
      "description" : "",
      "required" : false,
      "dataType" : "String",
      "type" : null,
      "defaultValue" : null,
      "validateType" : "",
      "error" : "",
      "expression" : "",
      "children" : [ ]
    }, {
      "name" : "path",
      "value" : "/conf-portal/token",
      "description" : "",
      "required" : false,
      "dataType" : "String",
      "type" : null,
      "defaultValue" : null,
      "validateType" : "",
      "error" : "",
      "expression" : "",
      "children" : [ ]
    } ]
  }
}
================================

import 'java.util.Date' as Date;
import 'java.text.SimpleDateFormat' as SimpleDateFormat;
// 
var token_meeting_json = """
{
  "uuid": "token123456",
  "userType": 38,
  "expire": 1000,
  "passwordExpireAfter": "90"
}
"""

import response;
import 'com.fasterxml.jackson.databind.ObjectMapper' as ObjectMapper;
var objectMapper = new ObjectMapper();
var token = objectMapper.readValue(token_meeting_json, Map.class);
var now = new Date();   // 创建对象
var df = new SimpleDateFormat('yyyy-MM-dd');

// 返回格式自定义 nowMT.json
// post请求：URL，http://192.168.118.88:29410/conf-portal/conferences/conditions?page=0&size=1000
// post请求：请求参数，{"startTime":"2024-12-23 17:04:37 CST","endTime":"2025-01-23 17:04:37 CST"}
// post请求：请求头，{"Content-type":"application/json;charset=UTF-8","token":"token123456"}

return response.json(
{
  "content": [
    {
      "id": "ff3c94e3-2cda-48be-8c31-28b80dbb63d6",
      "legacyId": 0,
      "subject": "019网络中心1测试会议",
      "username": "019网络中心1",
      "accountName": "019-1",
      "scheduleStartTime": "2023-08-09 09:00:00 UTC",
      "duration": 60,
      "category": "BASE",
      "organizationName": "中国科学院",
      "active": false,
      "accessCode": "9491073",
      "mainServiceZoneName": "Default",
      "mainServiceZoneId": "8ab9e3c4-69ce-04e5-0169-ce058e5d1213",
      "type": "AVC",
      "securityLevel": "INTERNAL",
      "showSecurityLevel": false,
      "status": "APPROVED_COMPLETED",
      "shareFlow": false,
      "enableRecord": false,
      "vdc": false
    },
    {
      "id": "5b611402-8351-4db4-8788-20a829155aa0",
      "legacyId": 0,
      "subject": "009南海海洋1的会议",
      "username": "009南海海洋1",
      "accountName": "009-1",
      "scheduleStartTime": "2023-08-10 05:30:00 UTC",
      "duration": 420,
      "category": "BASE",
      "organizationName": "中国科学院",
      "active": false,
      "accessCode": "9957995",
      "mainServiceZoneName": "Default",
      "mainServiceZoneId": "8ab9e3c4-69ce-04e5-0169-ce058e5d1213",
      "type": "AVC",
      "securityLevel": "CONFIDENTAIL",
      "showSecurityLevel": false,
      "status": "APPROVED_COMPLETED",
      "shareFlow": true,
      "enableRecord": false,
      "vdc": false
    }
  ],
  "pageable": {
    "sort": {
      "unsorted": true,
      "sorted": false,
      "empty": true
    },
    "pageSize": 20,
    "pageNumber": 0,
    "offset": 0,
    "unpaged": false,
    "paged": true
  },
  "totalPages": 1,
  "totalElements": 2,
  "last": true,
  "first": true,
  "sort": {
    "unsorted": true,
    "sorted": false,
    "empty": true
  },
  "numberOfElements": 2,
  "size": 20,
  "number": 0,
  "empty": false
})